namespace Digitalmes.Domain.Entities.Mes.Traceability;

/// <summary>
/// 设备能耗记录
/// </summary>
[SugarTable("trace_alarm_record")]
public sealed class TraceEnergyRecord : EntityBase
{
    /// <summary>
    /// 报警的产线 Id
    /// </summary>
    public int LineId { get; set; }

    /// <summary>
    /// 报警的产线代码
    /// </summary>
    public string? LineCode { get; set; }

    /// <summary>
    /// 区域
    /// </summary>
    public string? Area { get; set; }

    /// <summary>
    /// 工位
    /// </summary>
    public string? Ws { get; set; }

    /// <summary>
    /// 能耗名称
    /// </summary>
    public string? EnergyName { get; set; }

    /// <summary>
    /// 能耗值
    /// </summary>
    public double EnergyValue { get; set; }

    /// <summary>
    /// 记录时间
    /// </summary>
    public DateTime RecordTime { get; set; }
}
